avcodec: use ch_layout for channel layout in audio encoder
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 4 Jul 2023 13:55:28 +0000 (16:55 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commit8ecc55639527730d636e088ec3a00ad5491755fc
tree6ca686fdd3c8a55b5dd126208b410db89d3fdcc7
parent1f631b0bdcbed2ad62cba3ae16118e75e647f9e3
avcodec: use ch_layout for channel layout in audio encoder

channels and channel_layout has been deprecated in FFMPEG 5.1 and will be removed eventually

also always create the mapping, as ch_layout is always there

(cherry picked from commit b73dc8841d999c6be9de718cd2cd3aeb13279792)

Gbp-Pq: Name 0074-avcodec-use-ch_layout-for-channel-layout-in-audio-en.patch
modules/codec/avcodec/encoder.c